<el-dialog title="编辑日常招聘应聘人员信息" v-model="editFormDialog" @open='beforeEdit'>
<!-- <el-form :model="form"> -->
<el-form ref="editForm" :rules="editRules" :model="editForm" :label-width="dialogLabelWidth">
    

    <el-tabs  type="card" >
      <el-tab-pane label="基本信息" name="first">
         <el-row>
          <el-col :span="12">
            <el-form-item label="信息来源" prop ="info_sources">
              <el-select v-model="editForm.info_sources">
                <el-option v-for="sources in sourcesList" :label="sources.name" :value="sources.id"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
             <el-col :span="12">
          <el-form-item label="推荐人" prop="recommend_name" >
            <el-input v-model="editForm.recommend_name" auto-complet="off"></el-input>
          </el-form-item>
        </el-col>
         <!--    <el-col :span="12">
         <el-form-item label="推荐状态">
           <el-radio class="radio" v-model="editForm.recommend" label="1">非内部推荐</el-radio>
           <el-radio class="radio" v-model="editForm.recommend" label="2">内部推荐</el-radio>
         </el-form-item>
                   </el-col> -->
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="应聘人员姓名" prop= "name" >
              <el-input v-model="editForm.name"   auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="性别" prop="sex">
              <el-radio-group v-model="editForm.sex">
                <el-radio class="radio" v-model="editForm.sex" label="1">男</el-radio>
                <el-radio class="radio" v-model="editForm.sex" label="2">女</el-radio>
              </el-radio-group>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="身份证" prop = "id_card">
              <el-input v-model="editForm.id_card" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="手机号" prop = "mphone" >
              <el-input v-model="editForm.mphone" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="QQ号" prop = "qq">
              <el-input v-model="editForm.qq" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="微信号" prop = "weixin">
              <el-input v-model="editForm.weixin" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
            <el-col :span="12">
              <el-form-item prop="birth_date" label="毕业时间">
                  <el-date-picker  v-model="editForm.graduation_date" placeholder="请选择日期"   >
                  </el-date-picker>
                </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="毕业院校">
                <el-input v-model="editForm.university" auto-complet="off"></el-input>
              </el-form-item>
            </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="所学专业">
              <el-input v-model="editForm.major" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="应聘岗位">
              <el-input v-model="editForm.position" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-tab-pane>
      <el-tab-pane label="工作简历" name="second">
         <el-row>
            <el-col :span="12">
              <el-form-item prop="resume_entry_date"  label="任职开始日期" >
            <el-date-picker  
              clearable
              size="small"  
              v-model="editForm.resume_entry_date" 
              :picker-options="pickerOption1"   
              placeholder="请选择任职开始日期"
              @change="dateChange"
              :clearable="cleardate">
            </el-date-picker>
            <!-- clearable false 故意这样处理的 -->
          </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-form-item prop="resume_quit_date" label="任职结束日期" >
              <el-date-picker 
                clearable
                size="small"  
                v-model="editForm.resume_quit_date" 
                :picker-options="pickerOption1" 
                placeholder="请选择任职结束日期"  
                @change="dateChanges"
               :clearable="cleardate">
              </el-date-picker>
              <!-- clearable false 故意这样处理的 -->
          </el-form-item>
             </el-col>
           </el-row>

      <!-- <el-row>
            <el-col :span="12">
              <el-form-item prop="resume_entry_date" label="任职开始时间">
                  <el-date-picker  v-model="editForm.resume_entry_date" placeholder="请选择日期"   >
                  </el-date-picker>
                </el-form-item>
            </el-col>
             <el-col :span="12">
              <el-form-item prop="resume_quit_date" label="任职结束时间">
                  <el-date-picker  v-model="editForm.resume_quit_date" placeholder="请选择日期"   >
                  </el-date-picker>
                </el-form-item>
            </el-col>
        </el-row> -->
      <el-row>
          <el-col :span="12">
            <el-form-item label="企业名称">
              <el-input v-model="editForm.resume_enterprise_name" auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="任职职务">
              <el-input v-model="editForm.resume_position" auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      <el-row>
          <el-col :span="12">
            <el-form-item label="直属上司姓名" prop="resume_leader">
              <el-input v-model="editForm.resume_leader" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
            <el-col :span="12">
            <el-form-item label="直属上司手机号" prop = "resume_leader_phone">
              <el-input v-model="editForm.resume_leader_phone" auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
          <el-form-item label="离职原因" prop="resume_leaving_reasons" >
          <el-input
          v-model="editForm.resume_leaving_reasons"
          type="textarea"
          :autosize="{ minRows: 2, maxRows: 4}"
          placeholder="请输入内容">
        </el-input>
        </el-form-item>
      </el-tab-pane>
      <el-tab-pane label="初试" name="three">
       <el-row>
            <el-col :span="12">
              <el-form-item prop="interviewer_date" label="初试日期">
                  <el-date-picker  v-model="editForm.interviewer_date" placeholder="请选择日期" @change="interviewerDateEditChange"   >
                  </el-date-picker>
                </el-form-item>
            </el-col>
              <el-col :span="12">
            <el-form-item label="初试结果" prop = "first_test">
              <el-select v-model="editForm.first_test">
                <el-option v-for="test in testList" :label="test.name" :value="test.id"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
       </el-row>
       <el-row>
          <el-col :span="12">
            <el-form-item label="面试人姓名" prop = "interviewer_name">
              <el-input v-model="editForm.interviewer_name" auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
            <el-col :span="12">
            <el-form-item label="面试人所属部门" prop = "interviewer_department">
              <el-input v-model="editForm.interviewer_department" auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="面试人手机号" prop = "interviewer_mphone" >
              <el-input v-model="editForm.interviewer_mphone" auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="面试人QQ号" prop="interviewer_qq">
              <el-input v-model="editForm.interviewer_qq" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-form-item label="初试意见" prop="interviewer_opinion">
          <el-input
          v-model="editForm.interviewer_opinion"
          type="textarea"
          :autosize="{ minRows: 2, maxRows: 4}"
          placeholder="请输入内容">
        </el-input>
        </el-form-item>
      </el-tab-pane>
      <el-tab-pane label="复试" name="fourth">
       <el-row>
            <el-col :span="12">
              <el-form-item prop="birth_date" label="复试日期">
                  <el-date-picker  v-model="editForm.retest_interviewer_date" placeholder="请选择日期"  >
                  </el-date-picker>
                </el-form-item>
            </el-col>
              <el-col :span="12">
            <el-form-item label="复试结果">
              <el-select v-model="editForm.retest">
                <el-option v-for="test in retestList" :label="test.name" :value="test.id"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
       </el-row>
       <el-row>
          <el-col :span="12">
            <el-form-item label="面试人姓名">
              <el-input v-model="editForm.retest_interviewer_name" auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
            <el-col :span="12">
            <el-form-item label="面试人所属部门">
              <el-input v-model="editForm.retest_interviewer_department" auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="面试人手机号" prop="retest_interviewer_mphone">
              <el-input v-model="editForm.retest_interviewer_mphone" auto-complete="off"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="面试人QQ号" prop="retest_interviewer_qq">
              <el-input v-model="editForm.retest_interviewer_qq" auto-complet="off"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-form-item label="复试意见" prop="retest_interviewer_opinion">
          <el-input
          v-model="editForm.retest_interviewer_opinion"
          type="textarea"
          :autosize="{ minRows: 2, maxRows: 4}"
          placeholder="请输入内容">
        </el-input>
        </el-form-item>
      </el-tab-pane>
    </el-tabs>


  
    
  </el-form>
  <div slot="footer" class="dialog-footer">
   <include file="Common:_edit" />
  </div>
</el-dialog>